/**
 * 请求搜索相关模块
 */
 import request from '@/utils/request.js'

 // 搜索联想建议

 const getSearchSuggestion =  (searchText) => {
     return request({
         url: '/v1_0/suggestion',
         method: 'GET',
         params: {
            q: searchText
         }
     })

 }

 /**
  * 获取搜索结果
  */

 const getSearchResult = (searchContent) => {
    return request({
        url: '/v1_0/search',
        method: 'GET',
        params: {
            ...searchContent
        }
    })
 }

 export {
     getSearchSuggestion,
     getSearchResult
 }
 